package com.xbongbong.pro.message.factory;

import com.xbongbong.pro.message.service.MessageSetService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 消息服务工厂
 *
 * @author LiZhikang
 * @date 2022/11/1 16:43
 */

@Component
public class MessageSetServiceFactory {

    @Resource
    private Map<String, MessageSetService> messageSetMap;

    public MessageSetService getMessageSetService(String alias){
        return messageSetMap.get(alias);
    }

}
